package reflection;

public class Employee extends Person {

    private int id;

    private String position;

    public Employee() {
    }

    public Employee(int id, String position, int age, String name) {
        this.id = id;
        this.position = position;
        this.age = age;
        this.name = name;
    }

    public String gotoWork() {
        return "go to work";
    }

    @Override
    public String sayHello() {
        return "hello, my name is " + name;
    }

    @Override
    public String greet(String guestName) {
        return "welcome, " + guestName + ", i am " + name;
    }

    private double getSalary(int base) {
        return age * 3000.0 + 12000.0;
    }
}
